package com.qianyu.project.web.controller.xz;

import com.qianyu.project.service.IExpenseTypeService;
import com.qianyu.project.utils.Result;
import com.qianyu.project.utils.ResultTool;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author:xz
 * @Date: Created in 2021/2/10 21:44
 */

@RestController
@RequestMapping("/expenseType")
public class ExpenseTypeController {

    @Autowired
    private IExpenseTypeService expenseTypeService;

    @GetMapping
    public Result getList() {
        System.out.println(expenseTypeService.list());
        return ResultTool.success(expenseTypeService.list());

    }

}
